package com.gome.ocean.dao.gddl;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.gddl.AppRuleBO;

import java.util.List;

/**
 * <p> 标题: </p>
 * <p> 描述: </p>
 * @作者 haqiaolong
 * @创建时间 2016-03-21 14:28:03
 * @版本 1.00
 * @修改记录
 * <pre>
 * 版本       修改人         修改时间         修改内容描述
 * ----------------------------------------
 * 
 * ----------------------------------------
 * </pre>
 */
@Repository("appRuleDAO")
public interface AppRuleDAO {

	int insertAppRuleBO(AppRuleBO appRuleBO);
	
	int removeAppRuleBOById(Long id);
	
	int updateAppRuleBOById(AppRuleBO appRuleBO);
	
	AppRuleBO findAppRuleBOById(Long id);

    AppRuleBO findAppRuleBOByAppIdAndExpression(@Param("appTableId")Long appTableId,@Param("tableExpression")String expression);

    List<AppRuleBO> findAppRuleByAppId(@Param("appTableId")Long appTableId,RowBounds rowBounds);

    List<AppRuleBO> findAllAppRuleBO();

    List<AppRuleBO> findAppRuleListByAppId(@Param("appTableId")Long appTableId);
}